package br.unisc.robokit.view;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class Mensagens
{
	
	private static final String BUNDLE_NAME = "mensagens";

	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
	
	public static String getMensagem(String key) 
	{
		try 
		{
			return RESOURCE_BUNDLE.getString(key);
		} 
		catch (MissingResourceException e) 
		{
			return '!' + key + '!';
		}
	}
	
}